const Sequelize=require('sequelize')
/*const dbconfig={
  host:'localhost',
  username:'root',
  password:'123',
  database:'resume',
  dialect:'mysql'
}*/
const dbconfig={
  // host:'172.17.1.61',
  host:'149.129.78.34',
  username:'root',
  password:'Cjy199387!',
  database:'resume',
  dialect:'mysql'
}

const sequelize=new Sequelize(dbconfig.database,dbconfig.username,dbconfig.password,{
  host: dbconfig.host,
  dialect: dbconfig.dialect,
  operatorsAliases: false,
  timezone: '+08:00',
  pool: {
    max: 5,
    min: 0,
    acquire: 30000,
    idle: 10000
  },
// define: {}
})

module.exports=sequelize